// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 461);
/******/ })
/************************************************************************/
/******/ ({

/***/ 10:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var domModule = weex.requireModule('dom');
domModule.addRule('fontFace', {
  'fontFamily': 'icon',
  'src': "url('https://at.alicdn.com/t/font_565950_jbhufeemmi.ttf')"
});
module.exports = {};

/***/ }),

/***/ 293:
/***/ (function(module, exports) {

module.exports = {
  "icon": {
    "fontFamily": "icon"
  },
  "input-wrap": {
    "flexDirection": "row",
    "position": "relative",
    "alignItems": "center"
  },
  "input-wrap-border": {
    "borderStyle": "solid",
    "borderWidth": 1,
    "borderColor": "#dddddd"
  },
  "input-wrap-input": {
    "flex": 1,
    "color": "#474747",
    "placeholderColor": "#999"
  },
  "clear-btn": {
    "fontSize": "24",
    "textAlign": "center",
    "color": "#8c8c8c"
  },
  "clear-btn-light": {
    "color": "#ffffff"
  }
}

/***/ }),

/***/ 294:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

__webpack_require__(10);
var platform = __webpack_require__(5);
module.exports = {
  mixins: [],
  props: {
    placeholder: { default: '' },
    border: { default: 0 },
    value: { default: '' },
    fontSize: { default: 32 },
    height: { default: 52 },
    type: { default: 'text' },
    maxLength: { default: Number.MAX_SAFE_INTEGER },
    padding: { default: 0 },
    textAlign: { default: 'left' }
  },

  data: function data() {
    return {
      val: ''
    };
  },

  components: {},
  created: function created() {
    var _this = this;

    this.val = this.value;
    this.$watch('value', function (newVal, oldVal) {
      _this.val = newVal;
    });
  },

  methods: {
    updateValue: function updateValue(e) {
      // 通过 input 事件带出数值
      this.$emit('update:value', this.getVal(e));
    },
    inputChange: function inputChange(e) {
      this.val = this.getVal(e);
      this.$emit('change', this.getVal(e));
    },
    getVal: function getVal(e) {
      if (platform.isWeb()) {
        return e.target.value;
      } else {
        return e.target.attr.value;
      }
    },
    clear: function clear() {
      this.val = '';
      // 通过 input 事件带出数值
      this.$emit('update:value', '');
      this.$refs['input'].focus();
    }
  }
};

/***/ }),

/***/ 295:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    class: ['input-wrap', _vm.border && 'input-wrap-border']
  }, [_c('input', {
    ref: "input",
    staticClass: ["input-wrap-input"],
    style: {
      fontSize: _vm.fontSize + 'px',
      height: _vm.height + 'px',
      lineHeight: _vm.height + 'px',
      padding: _vm.padding + 'px',
      textAlign: _vm.textAlign
    },
    attrs: {
      "type": _vm.type,
      "placeholder": _vm.placeholder,
      "value": _vm.val,
      "maxlength": _vm.maxLength
    },
    on: {
      "change": _vm.inputChange,
      "input": _vm.updateValue
    }
  }), _c('text', {
    staticClass: ["icon", "clear-btn"],
    style: {
      width: _vm.height,
      height: _vm.height,
      lineHeight: _vm.height,
      opacity: _vm.val ? 1 : 0
    },
    on: {
      "click": _vm.clear
    }
  }, [_vm._v("")])])
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 461:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(293)
)

/* script */
__vue_exports__ = __webpack_require__(294)

/* template */
var __vue_template__ = __webpack_require__(295)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/lvling/workspace/米乐购/laxiaoke-app-mz/src/components/input.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-37738e93"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ }),

/***/ 5:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = {
  isWeb: function isWeb() {
    return weex.config.env.platform.toUpperCase() === 'WEB';
  },
  isIOS: function isIOS() {
    return weex.config.env.platform.toUpperCase() === 'IOS';
  }
};

/***/ })

/******/ });